package din

import (
	"iris-wms/common/model"
	"iris-wms/common/tools/consts"
)

// ----------------------------------------------- wms goods
type WmsGoodsCateListIn struct {
	Word   string `json:"word"`
	Enable int8   `json:"enable"`
}
type WmsGoodsIn struct {
	Goods  model.WmsGoods
	Images []*model.WmsGoodsImage `json:"images" gorm:"-"`
}

type WmsGoodsTableIn struct {
	VxeTableIn
	CateId uint   `json:"cateId"`
	Word   string `json:"word"`
	Enable int8   `json:"enable"`
	IsGift int8   `json:"isGift"`
}

// ----------------------------------------------- wms customer supplier carrier
type WmsCustomerTableIn struct {
	VxeTableIn
	Word   string `json:"word"`
	Enable int8   `json:"enable"`
}

type WmsSupplierTableIn struct {
	VxeTableIn
	Word   string `json:"word"`
	Enable int8   `json:"enable"`
}

type WmsCarrierTableIn struct {
	VxeTableIn
	Word   string `json:"word"`
	Enable int8   `json:"enable"`
}

type WmsWarehouseTableIn struct {
	VxeTableIn
	Word string `json:"word"`
}

type WmsBillIn struct {
	Bill          *model.WmsBill            `json:"bill"`
	GoodsList     []*model.WmsBillGoods     `json:"goodsList"`
	LogisticsList []*model.WmsBillLogistics `json:"logisticsList"`
}

type WmsBillTableIn struct {
	VxeTableIn
	Word       string          `json:"word"`
	OrderCode  string          `json:"orderCode"`
	IoType     uint            `json:"ioType"`
	SupplierId uint            `json:"supplierId"`
	CustomerId uint            `json:"customerId"`
	WorkType   consts.WorkType `json:"workType"`
}

type WmsBillPandianQueryByGoodsIdListAndWidIn struct {
	GoodsIdLis []uint `json:"goodsIdList"`
	WidList    []uint `json:"widList"`
}

// ----------------------------------------------- wms history
type WmsHistoryTableIn struct {
	VxeTableIn
	IoType  uint `json:"ioType"`
	Wid     uint `json:"wid"`
	GoodsId uint `json:"goodsId"`
}

// ----------------------------------------------- wms report
type WmsReportTableIn struct {
	VxeTableIn
	Wid     uint `json:"wid"`
	GoodsId uint `json:"goodsId"`
}

// ----------------------------------------------- wms
// ----------------------------------------------- wms
// ----------------------------------------------- wms
// ----------------------------------------------- wms
// ----------------------------------------------- wms
